#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 19-6-11 下午5:18
# @Author  : Tom
# @Site    : 
# @File    : log.py
# @Software: PyCharm

import logging
import os, sys
from django.conf import settings
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "meiduo_mall.settings.dev")
sys.path.insert(0, os.path.join(settings.BASE_DIR, "utils"))


class log(object):
    '''
    打印日志
    '''
    def __init__(self):
        self.__log_tmep = logging.getLogger('django')

    @property
    def log_print(self):
        return self.__log_tmep


# 导入模块时候
logger_out = log().log_print

